const daoCommon = require('../../util/daoCommon');
const dao = {
    handleGetCase: () => {
        let sql;
        sql = "select case_id,case_name,case_type,is_recommend,case_mainImg from cases where is_delete='0' and is_enabled='1'";
        return daoCommon.selectCommon(sql);
    },
    handleGetCaseDetail: (data) => {
        let sql;
        sql = "select case_name,case_type,is_recommend,achievement_time,case_url,case_mainImg,case_introduce from cases where case_id=$case_id";
        return daoCommon.selectCommon(sql, data);
    }
};
module.exports = dao;